<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>我的界面</title>
		<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
		<style>
			body {
				font-family: Arial, sans-serif;
				margin: 0;
				padding: 0;
				background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
				/* 更明显的渐变色 */
				min-height: 100vh;
			}

			.container {
				max-width: 800px;
				margin: 0 auto;
				padding: 20px;
			}

			.profile-section {
				background-color: #fff;
				padding: 20px;
				border-radius: 8px;
				box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
				text-align: center;
				margin-bottom: 20px;
			}

			.profile-image {
				width: 100px;
				height: 100px;
				border-radius: 50%;
				margin-bottom: 15px;
			}

			.profile-name {
				font-size: 24px;
				font-weight: bold;
				margin-bottom: 10px;
			}

			.profile-detail {
				font-size: 16px;
				color: #666;
				margin-bottom: 20px;
			}

			.info-card {
				background-color: #fff;
				padding: 20px;
				border-radius: 8px;
				box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
				margin-bottom: 20px;
			}

			.info-card h5 {
				margin-bottom: 15px;
				font-size: 18px;
				font-weight: bold;
			}

			.info-item {
				display: flex;
				justify-content: space-between;
				margin-bottom: 10px;
				font-size: 16px;
			}

			.info-item span {
				color: #666;
			}

			.action-button {
				display: block;
				width: 100%;
				padding: 10px;
				margin-bottom: 10px;
				border: none;
				border-radius: 5px;
				font-size: 16px;
				cursor: pointer;
				text-align: center;
				text-decoration: none;
				transition: background-color 0.3s ease;
			}

			.view-detail {
				background: linear-gradient(135deg, #007bff, #0056b3);
				color: #fff;
			}

			.change-password {
				background: linear-gradient(135deg, #28a745, #1e7e34);
				color: #fff;
			}

			.view-history {
				background: linear-gradient(135deg, #ffc107, #e0a800);
				color: #000;
			}

			.logout {
				background: linear-gradient(135deg, #dc3545, #a71d2a);
				color: #fff;
			}

			.action-button:hover {
				opacity: 0.9;
			}
		</style>
	</head>
	<body>
		<div class="container">
			<!-- 用户信息部分 -->
			<div class="profile-section">
				<img src="https://via.placeholder.com/100" alt="Profile Image" class="profile-image">
				<div class="profile-name">用户名</div>
				<div class="profile-detail">维修工程师</div>
				<button class="action-button view-detail" onclick="viewDetail()">查看个人详情</button>
			</div>

			<!-- 用户详细信息 -->
			<div class="info-card">
				<h5>个人信息</h5>
				<div class="info-item">
					<span>联系方式</span>
					<span>123-456-7890</span>
				</div>
				<div class="info-item">
					<span>地址</span>
					<span>北京市朝阳区</span>
				</div>
				<div class="info-item">
					<span>工单数量</span>
					<span>15</span>
				</div>
			</div>

			<!-- 功能按钮 -->
			<div class="info-card">
				<h5>功能操作</h5>
				<button class="action-button change-password" onclick="changePassword()">修改密码</button>
				<button class="action-button view-history" onclick="viewHistory()">查看历史工单</button>
				<button class="action-button logout" onclick="logout()">退出登录</button>
			</div>
		</div>

		<script>
			function viewDetail() {
				alert("查看个人详情");
				// 这里可以添加跳转到个人详情页面的逻辑
			}

			function changePassword() {
				alert("修改密码");
				// 这里可以添加修改密码的逻辑
			}

			function viewHistory() {
				alert("查看历史工单");
				// 这里可以添加查看历史工单的逻辑
			}

			function logout() {
				alert("退出登录");
				// 这里可以添加退出登录的逻辑
			}
		</script>
	</body>
</html>